package guyubao.com.utils;

/**
 * redis前缀类
 * @author wxa
 */
public class Const {
    // redis里白名单前缀
    public static final String JWT_WHITE_LIST="jwt:whitelist:";
    // redis重复刷令牌封禁
    public final static String JWT_FREQUENCY = "jwt:frequency:";
    // redis里邮箱验证码 限制请求次数
    public static final String VERIFY_EMAIL_LIMIT="verify:email:limit:";
    // redis里邮箱验证码
    public static final String VERIFY_EMAIL_DATA="verify:email:data:";
    // 请求ip计数器
    public static final String FLOW_LIMIT_COUNTER="flow:counter:";
    // 请求ip封禁
    public static final String FLOW_LIMIT_BLOCK="flow:block:";
    // 禁用用户优先级
    public static final int ORDER_DISABLE = -99;
    // 限流优先级
    public static final int ORDER_LIMIT = -101;
    // 跨域优先级要比正常的filter-100更小
    public static final int ORDER_CORS = -102;
    //请求自定义id属性的名称
    public final static String ATTR_USER_ID = "id";
    //请求自定义角色属性的名称
    public final static String ATTR_USER_ROLE = "role";
    //请求自定义邮箱属性的名称
    public final static String ATTR_USER_EMAIL = "email";
    //自定义管理员值
    public final static String ATTR_ROLE_ADMIN = "ADMIN";
    //自定义消息队队名
    public final static String MQ_MAIL="mail";

}
